package cn.isjinhao.se.sql.grammar.statement.create.represention;

import cn.isjinhao.se.sql.grammar.CurdStatementVisitor;
import cn.isjinhao.se.sql.grammar.CurdStatement;
import cn.isjinhao.se.sql.lexical.token.Token;

import java.util.List;

/**
 * @Author ISJINHAO
 * @Date 2021/4/5 21:02
 */
public class ValuesRep extends CurdStatement {
    
    private List<Token> columnList;
    private List<List<CurdStatement>> curdStatementsList;

    public ValuesRep(List<Token> columnList, List<List<CurdStatement>> curdStatementsList) {
        this.columnList = columnList;
        this.curdStatementsList = curdStatementsList;
    }

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitValuesRep(this);
    }

    public List<Token> getColumnList() {
        return columnList;
    }

    public List<List<CurdStatement>> getCurdStatementsList() {
        return curdStatementsList;
    }
}
